package com.agritech.strategy;

public class ObstacleAvoidanceStrategy implements PathStrategy {
    @Override
    public void planPath(String environmentInfo) {
        System.out.println("执行避障路径规划策略，环境信息: " + environmentInfo);
        // 模拟避障路径计算
        if (environmentInfo.contains("障碍物")) {
            System.out.println("检测到障碍物，重新规划路径: 左转绕行");
        } else {
            System.out.println("未检测到障碍物，按原路径前进");
        }
    }
}